package com.hrc.springbootdemo.retry;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/retry")
@AllArgsConstructor
@Slf4j
public class RetryController {

    private final RetryService retryService;

    @GetMapping("/")
    public void retry() throws Exception {
        retryService.retry();
    }
}
